#include "lineedit.h"
#include "utils.h"

LineEdit::LineEdit(QWidget *parent) : QLineEdit(parent)
{
    setDragEnabled(true);
}

bool LineEdit::event(QEvent *event)
{
    switch (event->type())
    {
    case QEvent::MouseButtonPress:
    case QEvent::MouseButtonRelease:
    case QEvent::MouseButtonDblClick:
    case QEvent::FocusIn:
    case QEvent::FocusOut:
    case QEvent::FocusAboutToChange:
    case QEvent::DragEnter:
    case QEvent::DragLeave:
    case QEvent::Drop:
    case QEvent::DragResponse:
        DEBUG() << "Event:" << event->type();
    default:
        break;
    }

    return QLineEdit::event(event);
}
